package or.exa.cangguan.mapper;

import or.exa.cangguan.entity.dto.GoodsDto;
import or.exa.cangguan.entity.po.OutOperationDetail;
import or.exa.cangguan.entity.po.OutStoreDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OutStoreDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OutStoreDetail record);

    int insertSelective(OutStoreDetail record);

    OutStoreDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OutStoreDetail record);

    int updateByPrimaryKey(OutStoreDetail record);

    // 根据出库单ID查询商品列表
    List<GoodsDto> selectByOutId(@Param("outId") Integer outId);
}